package com.h.captcha.modle;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


@ConfigurationProperties(prefix = "captcha")
@Configuration
@Data
public class Captcha {
    private Integer width;
    private Integer height;
    private Session session;

    // 使用内部类
    @Data
    public static class Session {
        private String key;
        private String date;
    }
}
